	.file	1 "main.c"
	.section .mdebug.abi32
	.previous
	.abicalls
	.rdata
	.align	2
$LC0:
	.ascii	"Usage:\n"
	.ascii	"  tp0 -h\n"
	.ascii	"  tp0 -V\n"
	.ascii	"  tp0 [options]\n"
	.ascii	"Options:\n"
	.ascii	"  -h, --help\t\tPrint this information.\n"
	.ascii	"  -V, --version\t\tPrint version and quit.\n"
	.ascii	"  -b, --binary\t\tGenerate a output file consisting of \342"
	.ascii	"\200\2311\342\200\231s and \342\200\2310\342\200\231s.\n"
	.ascii	"  -r, --reverse\t\tGenerate a output file using an encod"
	.ascii	"ed file as imput (default mode).\n"
	.ascii	"  -i, --input\t\tPath to input file (defaults to stdin)."
	.ascii	"\n"
	.ascii	"  -o, --output\t\tPath to output file (defaults to stdou"
	.ascii	"t).\n\000"
	.text
	.align	2
	.globl	printHelp
	.ent	printHelp
printHelp:
	.frame	$fp,40,$ra		# vars= 0, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,40
	.cprestore 16
	sw	$ra,32($sp)
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	la	$a0,$LC0
	la	$t9,printf
	jal	$ra,$t9
	move	$sp,$fp
	lw	$ra,32($sp)
	lw	$fp,28($sp)
	addu	$sp,$sp,40
	j	$ra
	.end	printHelp
	.size	printHelp, .-printHelp
	.rdata
	.align	2
$LC1:
	.ascii	"66.20 - TP0: infraestructura b\303\241sica, Versi\303\263"
	.ascii	"n 1.0\n\000"
	.text
	.align	2
	.globl	printVersion
	.ent	printVersion
printVersion:
	.frame	$fp,40,$ra		# vars= 0, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,40
	.cprestore 16
	sw	$ra,32($sp)
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	la	$a0,$LC1
	la	$t9,printf
	jal	$ra,$t9
	move	$sp,$fp
	lw	$ra,32($sp)
	lw	$fp,28($sp)
	addu	$sp,$sp,40
	j	$ra
	.end	printVersion
	.size	printVersion, .-printVersion
	.rdata
	.align	2
$LC2:
	.ascii	"%s\000"
	.text
	.align	2
	.globl	checkIOError
	.ent	checkIOError
checkIOError:
	.frame	$fp,40,$ra		# vars= 0, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,40
	.cprestore 16
	sw	$ra,32($sp)
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	sw	$a0,40($fp)
	sw	$a1,44($fp)
	sw	$a2,48($fp)
	lw	$v0,40($fp)
	lhu	$v0,12($v0)
	srl	$v0,$v0,6
	andi	$v0,$v0,0x1
	beq	$v0,$zero,$L19
	la	$a0,__sF+176
	la	$a1,$LC2
	lw	$a2,44($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	lw	$v1,40($fp)
	la	$v0,__sF
	beq	$v1,$v0,$L21
	lw	$v1,40($fp)
	la	$v0,__sF+88
	beq	$v1,$v0,$L21
	lw	$a0,40($fp)
	la	$t9,fclose
	jal	$ra,$t9
$L21:
	lw	$v1,48($fp)
	la	$v0,__sF
	beq	$v1,$v0,$L22
	lw	$v1,48($fp)
	la	$v0,__sF+88
	beq	$v1,$v0,$L22
	lw	$a0,48($fp)
	la	$t9,fclose
	jal	$ra,$t9
$L22:
	li	$a0,-1			# 0xffffffffffffffff
	la	$t9,exit
	jal	$ra,$t9
$L19:
	move	$sp,$fp
	lw	$ra,32($sp)
	lw	$fp,28($sp)
	addu	$sp,$sp,40
	j	$ra
	.end	checkIOError
	.size	checkIOError, .-checkIOError
	.rdata
	.align	2
$LC3:
	.ascii	"Error al intentar abrir el archivo\n\000"
	.text
	.align	2
	.globl	openFile
	.ent	openFile
openFile:
	.frame	$fp,48,$ra		# vars= 8, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,48
	.cprestore 16
	sw	$ra,40($sp)
	sw	$fp,36($sp)
	sw	$gp,32($sp)
	move	$fp,$sp
	sw	$a0,48($fp)
	sw	$a1,52($fp)
	sw	$a2,56($fp)
	lw	$v0,48($fp)
	bne	$v0,$zero,$L24
	lw	$v0,52($fp)
	sw	$v0,24($fp)
	b	$L25
$L24:
	lw	$a0,48($fp)
	lw	$a1,56($fp)
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,24($fp)
$L25:
	lw	$v0,24($fp)
	bne	$v0,$zero,$L26
	la	$a0,__sF+176
	la	$a1,$LC3
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,-1			# 0xffffffffffffffff
	la	$t9,exit
	jal	$ra,$t9
$L26:
	lw	$v0,24($fp)
	move	$sp,$fp
	lw	$ra,40($sp)
	lw	$fp,36($sp)
	addu	$sp,$sp,48
	j	$ra
	.end	openFile
	.size	openFile, .-openFile
	.rdata
	.align	2
$LC4:
	.ascii	"Se produjo un error al leer del archivo de entrada\000"
	.align	2
$LC5:
	.ascii	"Error de lectura, el archivo finaliza de forma inesperad"
	.ascii	"a\n\000"
	.align	2
$LC8:
	.ascii	"Error, el caracter leido no es un valor binario\n\000"
	.align	2
$LC9:
	.ascii	"%c\000"
	.align	2
$LC10:
	.ascii	"Error de lectura, el archivo finaliza de forma inesperad"
	.ascii	"a\000"
	.align	3
$LC6:
	.word	0
	.word	1073741824
	.align	3
$LC7:
	.word	0
	.word	1105199104
	.text
	.align	2
	.globl	traducirBin2Tex
	.ent	traducirBin2Tex
traducirBin2Tex:
	.frame	$fp,96,$ra		# vars= 56, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,96
	.cprestore 16
	sw	$ra,88($sp)
	sw	$fp,84($sp)
	sw	$gp,80($sp)
	move	$fp,$sp
	sw	$a0,96($fp)
	sw	$a1,100($fp)
	addu	$v0,$fp,48
	move	$a0,$v0
	li	$a1,1			# 0x1
	li	$a2,8			# 0x8
	lw	$a3,96($fp)
	la	$t9,fread
	jal	$ra,$t9
	sw	$v0,28($fp)
	lw	$a0,96($fp)
	la	$a1,$LC4
	lw	$a2,100($fp)
	la	$t9,checkIOError
	jal	$ra,$t9
	lw	$v0,28($fp)
	sltu	$v0,$v0,8
	beq	$v0,$zero,$L28
	lw	$v0,28($fp)
	beq	$v0,$zero,$L28
	la	$a0,__sF+176
	la	$a1,$LC5
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,-1			# 0xffffffffffffffff
	la	$t9,exit
	jal	$ra,$t9
$L28:
	.set	noreorder
	nop
	.set	reorder
$L29:
	lw	$v0,96($fp)
	lhu	$v0,12($v0)
	srl	$v0,$v0,5
	andi	$v0,$v0,0x1
	beq	$v0,$zero,$L31
	b	$L30
$L31:
	sb	$zero,32($fp)
	sw	$zero,24($fp)
$L32:
	lw	$v0,24($fp)
	slt	$v0,$v0,8
	bne	$v0,$zero,$L35
	b	$L33
$L35:
	addu	$v1,$fp,48
	lw	$v0,24($fp)
	addu	$v0,$v1,$v0
	lb	$v1,0($v0)
	li	$v0,49			# 0x31
	bne	$v1,$v0,$L36
	l.d	$f2,$LC6
	li	$v1,7			# 0x7
	lw	$v0,24($fp)
	subu	$v1,$v1,$v0
	mtc1	$v1,$f0
	cvt.d.w	$f0,$f0
	mov.d	$f12,$f2
	mov.d	$f14,$f0
	la	$t9,pow
	jal	$ra,$t9
	s.d	$f0,40($fp)
	l.d	$f0,40($fp)
	s.d	$f0,64($fp)
	l.d	$f2,$LC7
	s.d	$f2,72($fp)
	l.d	$f4,64($fp)
	l.d	$f0,72($fp)
	c.le.d	$f0,$f4
	bc1t	$L37
	l.d	$f0,64($fp)
	trunc.w.d $f0,$f0,$v0
	s.s	$f0,56($fp)
	b	$L38
$L37:
	l.d	$f2,64($fp)
	l.d	$f4,72($fp)
	sub.d	$f0,$f2,$f4
	li	$v0,-2147483648			# 0xffffffff80000000
	trunc.w.d $f2,$f0,$a0
	s.s	$f2,56($fp)
	lw	$v1,56($fp)
	or	$v1,$v1,$v0
	sw	$v1,56($fp)
$L38:
	lw	$a0,56($fp)
	move	$v0,$a0
	lbu	$v1,32($fp)
	addu	$v0,$v1,$v0
	sb	$v0,32($fp)
	b	$L34
$L36:
	addu	$v1,$fp,48
	lw	$v0,24($fp)
	addu	$v0,$v1,$v0
	lb	$v1,0($v0)
	li	$v0,48			# 0x30
	beq	$v1,$v0,$L34
	la	$a0,__sF+176
	la	$a1,$LC8
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,-1			# 0xffffffffffffffff
	la	$t9,exit
	jal	$ra,$t9
$L34:
	lw	$v0,24($fp)
	addu	$v0,$v0,1
	sw	$v0,24($fp)
	b	$L32
$L33:
	lb	$v0,32($fp)
	lw	$a0,100($fp)
	la	$a1,$LC9
	move	$a2,$v0
	la	$t9,fprintf
	jal	$ra,$t9
	lw	$a0,100($fp)
	la	$a1,$LC4
	lw	$a2,96($fp)
	la	$t9,checkIOError
	jal	$ra,$t9
	addu	$v0,$fp,48
	move	$a0,$v0
	li	$a1,1			# 0x1
	li	$a2,8			# 0x8
	lw	$a3,96($fp)
	la	$t9,fread
	jal	$ra,$t9
	sw	$v0,28($fp)
	lw	$a0,96($fp)
	la	$a1,$LC4
	lw	$a2,100($fp)
	la	$t9,checkIOError
	jal	$ra,$t9
	lw	$v0,28($fp)
	sltu	$v0,$v0,8
	beq	$v0,$zero,$L29
	lw	$v0,28($fp)
	beq	$v0,$zero,$L29
	la	$a0,__sF+176
	la	$a1,$LC10
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,-1			# 0xffffffffffffffff
	la	$t9,exit
	jal	$ra,$t9
$L30:
	move	$v0,$zero
	move	$sp,$fp
	lw	$ra,88($sp)
	lw	$fp,84($sp)
	addu	$sp,$sp,96
	j	$ra
	.end	traducirBin2Tex
	.size	traducirBin2Tex, .-traducirBin2Tex
	.align	2
	.globl	traducirTex2Bin
	.ent	traducirTex2Bin
traducirTex2Bin:
	.frame	$fp,56,$ra		# vars= 16, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,56
	.cprestore 16
	sw	$ra,48($sp)
	sw	$fp,44($sp)
	sw	$gp,40($sp)
	move	$fp,$sp
	sw	$a0,56($fp)
	sw	$a1,60($fp)
	lw	$a0,56($fp)
	la	$t9,fgetc
	jal	$ra,$t9
	sb	$v0,25($fp)
	lw	$a0,56($fp)
	la	$a1,$LC4
	lw	$a2,60($fp)
	la	$t9,checkIOError
	jal	$ra,$t9
$L43:
	lw	$v0,56($fp)
	lhu	$v0,12($v0)
	srl	$v0,$v0,5
	andi	$v0,$v0,0x1
	beq	$v0,$zero,$L45
	b	$L44
$L45:
	li	$v0,7			# 0x7
	sw	$v0,28($fp)
$L46:
	lw	$v0,28($fp)
	bgez	$v0,$L49
	b	$L47
$L49:
	lbu	$v0,25($fp)
	andi	$v0,$v0,0x1
	sb	$v0,24($fp)
	lbu	$v0,25($fp)
	srl	$v0,$v0,1
	sb	$v0,25($fp)
	addu	$v1,$fp,32
	lw	$v0,28($fp)
	addu	$v1,$v1,$v0
	lbu	$v0,24($fp)
	sb	$v0,0($v1)
	lw	$v0,28($fp)
	addu	$v0,$v0,-1
	sw	$v0,28($fp)
	b	$L46
$L47:
	sw	$zero,28($fp)
$L50:
	lw	$v0,28($fp)
	slt	$v0,$v0,8
	bne	$v0,$zero,$L53
	b	$L51
$L53:
	addu	$v1,$fp,32
	lw	$v0,28($fp)
	addu	$v0,$v1,$v0
	lbu	$v0,0($v0)
	bne	$v0,$zero,$L54
	addu	$v1,$fp,32
	lw	$v0,28($fp)
	addu	$v1,$v1,$v0
	li	$v0,48			# 0x30
	sb	$v0,0($v1)
	b	$L55
$L54:
	addu	$v1,$fp,32
	lw	$v0,28($fp)
	addu	$v1,$v1,$v0
	li	$v0,49			# 0x31
	sb	$v0,0($v1)
$L55:
	addu	$v1,$fp,32
	lw	$v0,28($fp)
	addu	$v0,$v1,$v0
	lbu	$v0,0($v0)
	lw	$a0,60($fp)
	la	$a1,$LC9
	move	$a2,$v0
	la	$t9,fprintf
	jal	$ra,$t9
	lw	$a0,60($fp)
	la	$a1,$LC4
	lw	$a2,56($fp)
	la	$t9,checkIOError
	jal	$ra,$t9
	lw	$v0,28($fp)
	addu	$v0,$v0,1
	sw	$v0,28($fp)
	b	$L50
$L51:
	lw	$a0,56($fp)
	la	$t9,fgetc
	jal	$ra,$t9
	sb	$v0,25($fp)
	lw	$a0,56($fp)
	la	$a1,$LC4
	lw	$a2,60($fp)
	la	$t9,checkIOError
	jal	$ra,$t9
	b	$L43
$L44:
	move	$v0,$zero
	move	$sp,$fp
	lw	$ra,48($sp)
	lw	$fp,44($sp)
	addu	$sp,$sp,56
	j	$ra
	.end	traducirTex2Bin
	.size	traducirTex2Bin, .-traducirTex2Bin
	.rdata
	.align	2
$LC12:
	.ascii	"help\000"
	.align	2
$LC13:
	.ascii	"version\000"
	.align	2
$LC14:
	.ascii	"binary\000"
	.align	2
$LC15:
	.ascii	"reverse\000"
	.align	2
$LC16:
	.ascii	"input\000"
	.align	2
$LC17:
	.ascii	"output\000"
	.data
	.align	2
$LC18:
	.word	$LC12
	.word	0
	.word	0
	.word	104
	.word	$LC13
	.word	0
	.word	0
	.word	86
	.word	$LC14
	.word	0
	.word	0
	.word	98
	.word	$LC15
	.word	0
	.word	0
	.word	114
	.word	$LC16
	.word	2
	.word	0
	.word	105
	.word	$LC17
	.word	2
	.word	0
	.word	111
	.word	0
	.word	0
	.word	0
	.word	0
	.globl	memcpy
	.rdata
	.align	2
$LC11:
	.ascii	"hVbri:o:\000"
	.align	2
$LC19:
	.ascii	"-\000"
	.align	2
$LC20:
	.ascii	"r\000"
	.align	2
$LC21:
	.ascii	"w\000"
	.align	2
$LC22:
	.ascii	"rb\000"
	.align	2
$LC23:
	.ascii	"wb\000"
	.text
	.align	2
	.globl	main
	.ent	main
main:
	.frame	$fp,200,$ra		# vars= 152, regs= 3/0, args= 24, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,200
	.cprestore 24
	sw	$ra,192($sp)
	sw	$fp,188($sp)
	sw	$gp,184($sp)
	move	$fp,$sp
	sw	$a0,200($fp)
	sw	$a1,204($fp)
	sw	$zero,opterr
	sw	$zero,32($fp)
	la	$v0,$LC11
	sw	$v0,36($fp)
	addu	$v0,$fp,40
	la	$v1,$LC18
	move	$a0,$v0
	move	$a1,$v1
	li	$a2,112			# 0x70
	la	$t9,memcpy
	jal	$ra,$t9
	sw	$zero,152($fp)
	sw	$zero,156($fp)
	li	$v0,1			# 0x1
	sb	$v0,160($fp)
$L57:
	addu	$v0,$fp,40
	sw	$zero,16($sp)
	lw	$a0,200($fp)
	lw	$a1,204($fp)
	lw	$a2,36($fp)
	move	$a3,$v0
	la	$t9,getopt_long
	jal	$ra,$t9
	sw	$v0,32($fp)
	lw	$v1,32($fp)
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L60
	b	$L58
$L60:
	lw	$v0,32($fp)
	addu	$v0,$v0,-86
	sw	$v0,176($fp)
	lw	$v1,176($fp)
	sltu	$v0,$v1,29
	beq	$v0,$zero,$L70
	lw	$v0,176($fp)
	sll	$v1,$v0,2
	la	$v0,$L71
	addu	$v0,$v1,$v0
	lw	$v0,0($v0)
	.cpadd	$v0
	j	$v0
	.rdata
	.align	2
$L71:
	.gpword	$L63
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L64
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L62
	.gpword	$L66
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L70
	.gpword	$L68
	.gpword	$L70
	.gpword	$L70
	.gpword	$L65
	.text
$L62:
	la	$t9,printHelp
	jal	$ra,$t9
	sw	$zero,172($fp)
	b	$L56
$L63:
	la	$t9,printVersion
	jal	$ra,$t9
	sw	$zero,172($fp)
	b	$L56
$L64:
	li	$v0,1			# 0x1
	sb	$v0,160($fp)
	b	$L57
$L65:
	li	$v0,2			# 0x2
	sb	$v0,160($fp)
	b	$L57
$L66:
	lw	$a0,optarg
	la	$a1,$LC19
	la	$t9,strcmp
	jal	$ra,$t9
	beq	$v0,$zero,$L57
	lw	$a0,optarg
	la	$t9,strlen
	jal	$ra,$t9
	addu	$v0,$v0,1
	move	$a0,$v0
	la	$t9,malloc
	jal	$ra,$t9
	sw	$v0,152($fp)
	lw	$a0,152($fp)
	lw	$a1,optarg
	la	$t9,strcpy
	jal	$ra,$t9
	b	$L57
$L68:
	lw	$a0,optarg
	la	$a1,$LC19
	la	$t9,strcmp
	jal	$ra,$t9
	beq	$v0,$zero,$L57
	lw	$a0,optarg
	la	$t9,strlen
	jal	$ra,$t9
	addu	$v0,$v0,1
	move	$a0,$v0
	la	$t9,malloc
	jal	$ra,$t9
	sw	$v0,156($fp)
	lw	$a0,156($fp)
	lw	$a1,optarg
	la	$t9,strcpy
	jal	$ra,$t9
	b	$L57
$L70:
	la	$t9,printHelp
	jal	$ra,$t9
	li	$a0,-1			# 0xffffffffffffffff
	la	$t9,exit
	jal	$ra,$t9
$L58:
	lb	$v1,160($fp)
	li	$v0,1			# 0x1
	bne	$v1,$v0,$L72
	lw	$a0,152($fp)
	la	$a1,__sF
	la	$a2,$LC20
	la	$t9,openFile
	jal	$ra,$t9
	sw	$v0,164($fp)
	lw	$a0,156($fp)
	la	$a1,__sF+88
	la	$a2,$LC21
	la	$t9,openFile
	jal	$ra,$t9
	sw	$v0,168($fp)
	lw	$a0,164($fp)
	lw	$a1,168($fp)
	la	$t9,traducirBin2Tex
	jal	$ra,$t9
	b	$L73
$L72:
	lb	$v1,160($fp)
	li	$v0,2			# 0x2
	bne	$v1,$v0,$L73
	lw	$a0,152($fp)
	la	$a1,__sF
	la	$a2,$LC22
	la	$t9,openFile
	jal	$ra,$t9
	sw	$v0,164($fp)
	lw	$a0,156($fp)
	la	$a1,__sF+88
	la	$a2,$LC23
	la	$t9,openFile
	jal	$ra,$t9
	sw	$v0,168($fp)
	lw	$a0,164($fp)
	lw	$a1,168($fp)
	la	$t9,traducirTex2Bin
	jal	$ra,$t9
$L73:
	lw	$a0,164($fp)
	la	$t9,fclose
	jal	$ra,$t9
	lw	$a0,168($fp)
	la	$t9,fclose
	jal	$ra,$t9
	sw	$zero,172($fp)
$L56:
	lw	$v0,172($fp)
	move	$sp,$fp
	lw	$ra,192($sp)
	lw	$fp,188($sp)
	addu	$sp,$sp,200
	j	$ra
	.end	main
	.size	main, .-main
	.ident	"GCC: (GNU) 3.3.3 (NetBSD nb3 20040520)"
